﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Mappit {
    public partial class DialogNewProject : Form {
        public DialogNewProject() {
            InitializeComponent();
        }
        public string Filename {
            get { return textBoxProjectName.Text.Trim(); }
        }
        public string Author {
            get { return textBoxAuthor.Text.Trim(); }
        }
        public string Directory {
            get { return textBoxDirectory.Text.Trim(); }
        }
        private void buttonBrowseFolders_Click(object sender, EventArgs e) {
            DialogResult result = folderBrowserDialog.ShowDialog();
            if (result != DialogResult.OK) {
                return;
            }
            textBoxDirectory.Text = folderBrowserDialog.SelectedPath;
        }
    }
}
